package edu.zut.hb.software.train.AdministratorManager.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.zut.hb.software.base.service.impl.GenericManagerImpl;
import edu.zut.hb.software.train.Administrator.dao.AdministratorDao;
import edu.zut.hb.software.train.Administrator.domain.Administrator;
import edu.zut.hb.software.train.AdministratorManager.service.AdministratorManager;




@Service("administratorManager")
public class AdministratorManagerImpl extends GenericManagerImpl<Administrator, Long> implements AdministratorManager {

	
	AdministratorDao administratorDao;
	
	@Autowired
	public void setArrangementDao(AdministratorDao administratorDao) {
		this.administratorDao = administratorDao;
		this.dao = this.administratorDao;
	}

	@Override
	public List<Administrator> getAll() {
		List<Administrator> all = this.administratorDao.findAll();
		if (logger.isInfoEnabled()) {
			logger.info("getAll() - List<Administrator> all={}", all); //$NON-NLS-1$
		}
		return all;
	}
 
}